Fix annotation for GdkContentFormats.get_gtypes()
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 9 Mar 2020 16:34:00 +0000 (17:34 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 9 Mar 2020 16:36:08 +0000 (17:36 +0100)
gdk/gdkcontentformats.c

index e83b1b783ecb421d0e5de8d7b0cf64ef8a17d0fe..7a616fc53962e6385f493037975a20f3a2ad50f5 100644 (file)
@@ -454,15 +454,16 @@ gdk_content_formats_contain_mime_type (const GdkContentFormats *formats,
 /**
  * gdk_content_formats_get_gtypes:
  * @formats: a #GdkContentFormats
- * @n_gtypes: (out) (allow-none): optional pointer to take the
+ * @n_gtypes: (out) (optional): optional pointer to take the
  *     number of #GTypes contained in the return value
  *
  * Gets the #GTypes included in @formats. Note that @formats may not
  * contain any #GTypes, in particular when they are empty. In that
  * case %NULL will be returned. 
  *
- * Returns: (transfer none) (nullable): %G_TYPE_INVALID-terminated array of 
- *     types included in @formats or %NULL if none.
+ * Returns: (transfer none) (nullable) (array length=n_gtypes):
+ *      %G_TYPE_INVALID-terminated array of types included in @formats or
+ *      %NULL if none.
  **/
 const GType *
 gdk_content_formats_get_gtypes (const GdkContentFormats *formats,